#main:main.o mymath.o mystdio.o mymath.h mystdio.h
#	gcc -o $@ $^
#main.o:main.c
#	gcc -c main.c

#main:main.c mymath.o mystdio.o mymath.h mystdio.h
#	gcc -o $@ $^

libmyc.so:mymath.o mystdio.o
	gcc -shared -o $@ $^

%.o:%.c
	gcc -c -fPIC $<

.PHONY:clean
clean:
#	rm -rf main *.o log.txt *.so
#	rm -rf main *.o log.txt
	rm -rf *.o log.txt

.PHONY:output
output:
	mkdir -p mylib/include
	mkdir -p mylib/lib
	cp -rf *.h mylib/include
	cp -rf *.so mylib/lib